home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 April
/
CHIP CD (4 - 2007).iso
/
beeld
/
3d
/
ArtOfIllusion24-Mac.dmg
/
Art of Illusion
/
ArtOfIllusion.jar
/
bsh
/
commands
/
bg.bsh
< prev
next >
Wrap
Text File
|
2005-05-23
|
488b
|
23 lines
/**
Source a command in its own thread in the caller's namespace
<p>
This is like run() except that it runs the command in its own thread.
Returns the Thread object control.
@method Thread bg( String filename )
*/
bsh.help.run= "usage: Thread bg( filename )";
Thread bg( String filename )
{
this.callerNameSpace = this.caller.namespace;
run() {
this.interpreter.source( filename, callerNameSpace );
}
this.thread = new Thread( this );
thread.start();
return thread;
}